import express from 'express';
import consign from 'consign'; 
const app = express();
consign({verbose : false})
  .include("libs/config.js")
  // .then("redis.js")
  // .then("db.js")
  // .include("service")
  .then("libs/middlewares.js")
  .include("routes")
  .then("server.js")
  .then("io.js")
  .then("libs/boot.js")
  .then('libs/errorhandler.js')
  .into(app)

module.exports = app;